﻿<script src="~/Scripts/SettingsControllers/GetNotificationController.js"></script>
<div ng-controller="Notificationctrl">
    <a href="#" class="dropdown-toggle text-white alert-notice waves-effect" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="zmdi zmdi-globe"></i><span class="badge bg-warning">{{notification.length}}</span></a>
    <ul class="dropdown-menu dropdown-menu-right dm-large m-0 p-0 bs-2 animated flipInY  malihu-scrollbar">
        <li class="p-15 pt-10 pb-10 fs-12 text-uppercase fw-700 bg-black bs-inset-primary clearfix">
            <span class="pull-left">You have {{notification.length}} notifications</span>
        </li>
        <li ng-repeat="item in notification">
                <div class="media p-10 pri-{{item.ControllerActions.Priorty}}">
                    <div class="media-left">
                        <img class="media-object mo-xs img-circle" ng-src="~/Uploads/uploaded/{{item.Image}}" on-error-src="~/Images/_NoImge.png" />
                    </div>
                    <div class="media-body">
                        <h6 class="media-heading">{{item.Name}}</h6>
                        <p class="fs-13 mb-0">{{item.NotificationString}}</p>
                        <small class="text-muted">{{item.time}}</small>
                    </div>
                    <div class="clearfix"></div>
                </div>
        </li>
    </ul>
</div>
